/*
 * Copyright WelinkSoft Ltd. (c) 2018.
 */

package com.xj.server;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate;
import org.springframework.stereotype.Service;

import java.util.List;

@Service(value = "dataBaseBackDao")
	public class DataBaseBackDaoImpl {
	@Autowired
    NamedParameterJdbcTemplate namedjdbcTemplate;

	public   void  execuSql(String sql){
		this.namedjdbcTemplate.getJdbcOperations().execute(sql);
	}

	public  List    queryForlist(String sql){
	  return 	 this.namedjdbcTemplate.getJdbcOperations().queryForList(sql);
	}







}
